﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DalatCooking.Core;


namespace DalatGreenTest
{
    public class Program
    {
        static void Main(string[] args)
        {
           
            Person p = new Person
            {
                PersonId=-1,
              
                UserName = "tuanitpro",
                Password = "123456",
                Email = "tuanitpro@gmail.com",
             
                IsActive = true
            };

            Person p1 = new Person();
            p1.PersonId = -1;
          
            p1.UserName = "tuanyena";
            p1.Password = "123456";
            p1.Email = "demo@emaild";
           
            p1.IsActive = true;


            Profile pr = ProfileManager.FindByPersonId(1);
            Console.WriteLine(pr.AddressId);

           
            //Console.WriteLine(pr.Address.Address1);

         //  bool kq = PersonManager.Insert(p1);
          //  Console.WriteLine(kq);
            /*
            foreach (var item in PersonManager.FindAll())
            {
                Console.WriteLine("Display Name: " + item.Profile.DisplayName);
            }

            */

            /*
           // var db = MenuManager.FindByGroup("adminmenu");
            Console.WriteLine("Test menu :" + MenuManager.FindAll().Count);


            var db = MenuManager.FindByGroup("adminmenu");
            
            foreach (var item in db)
            {
                Console.WriteLine("-- :" + item.Name);
            }

           // Console.WriteLine(PersonManager.FindByEmail("tuanitpro@gmail.com").UserName);
           // Console.WriteLine(PersonManager.Login("tuanitpro", "123456").UserName);
          */
            Console.ReadKey();
           
        }
    }
}
